package com.example.w.dao;

import com.example.w.common.pojo.MenuItem;
import com.example.w.common.pojo.TypeNum;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface MenuItemDao {
    int deleteByPrimaryKey(Long id);

    int insert(MenuItem record);

    int insertSelective(MenuItem record);

    MenuItem selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(MenuItem record);

    int updateByPrimaryKey(MenuItem record);

    List<MenuItem> selectByPrimaryKeys(long[] menuItemIds);

    void insertComboToMenuItem(List<Map<String, Long>> items);

    void deleteComboToMenuItemByComboId(Long id);

    List<MenuItem> selectByComboToMenuItemIds(Long comboId);

    List<MenuItem> findAll();

    List<MenuItem> selectByType(TypeNum type);

    List<MenuItem> selectComboBySingleItem(Long id);
}